import Vue from 'vue'
import App from './App'
import store from './store'
// import http from 'api/index'
import { http } from '@/api/service.js' 
import { http2 } from '@/api/service2.js' 
import config from './config.js'
import funcs from './utils/funs.js'
import types from './utils/types.js'
import dayjs from 'dayjs'

Vue.config.productionTip = false
Vue.prototype.$store = store
Vue.prototype.$http = http
Vue.prototype.$http2 = http2
Vue.prototype.$config = config
Vue.prototype.$funcs = funcs
Vue.prototype.$types = types
Vue.filter('formatTime', function(val) {
	if(!val) return;
	return dayjs(val).format('YYYY-MM-DD HH:mm:ss')
})

App.mpType = 'app'

const app = new Vue({
    ...App,
	store
})
app.$mount()
